/**
 * Created by zxr on 17/2/7.
 */
import Vue from 'vue'
import Vuex from 'vuex'
import MARKDOWN_SUCCESS from './mutation-types.js'

Vue.use(Vuex);
const state = {
	rawHtml:'',
	renderHtml:''
};
const mutations = {
	[MARKDOWN_SUCCESS](state,_rawHtml,content){
		console.log(_rawHtml,content)
		state.rawHtml = _rawHtml
		state.renderHtml = content
	}
};

export default new Vuex.Store({
	state,
	mutations
})